function generateChart2(data, data2, chartType, chartId) {
    var barModel = eval('(' + data + ')');
    var barModel2 = eval('(' + data2 + ')');
    //jQuery("#highchartChart1" + chartId);
    var hc = jQuery("*[id$=highchartChart" + chartId + "]");
    var hcid = hc.attr('id');
    //var myWidth = jQuery('#' + hcid).css('width').slice(0,-2);
    //var width = jQuery("#" + hcid).width();

    var options = null;
    options = {
        chart : {
            renderTo :hcid,
            borderWidth :0,
            borderColor :'#EEEEEE',
            zoomType:'xy',
            backgroundColor: '#FAFAFA'
        },
        title : {
            text :barModel.hctitle
        },
        xAxis : {
            categories :barModel.columnkeys,
        },
        yAxis: [{ // Primary yAxis
            labels: {
                formatter: function() {
                    return (Math.round(this.value * 10000)/100).toFixed(2) + '%';
                },
                style: {
                    color: '#89A54E'
                }
            },
            title: {
                text: '分步转化率&累计完成率',
                style: {
                    color: '#89A54E'
                }
            }
        }, { // Secondary yAxis
            title: {
                text: '设备数量',
                style: {
                    color: '#4572A7'
                }
            },
            labels: {
                format: '{value}',
                style: {
                    color: '#4572A7'
                }
            },
            opposite: true
        }],
        tooltip : {
            formatter: function() {
                if (this.series.type=='spline') {
                    return '<span style="color:' + this.series.color +'">'+ this.series.name +'</span>:' + (Math.round(this.y * 10000)/100).toFixed(2) + '%';
                } else {
                    return '<span style="color:' + this.series.color +'">' + this.series.name +'</span>:' + this.y;
                }

            }
        },
        legend: {
            align: 'center',
            backgroundColor: '#FFFFFF'
        },
        series : []
    };

    var dataArray = barModel.data;
    var dataName = barModel.names;
    var dataArray2 = barModel2.data;
    var dataName2 = barModel2.names;

    options.series.push( {
        color: '#4572A7',
        type: 'column',
        yAxis: 1,
        name :dataName[0],
        data :dataArray[0]});
    options.series.push( {
        color: '#89A54E',
        type: 'spline',
        name :dataName2[0],
        data :dataArray2[0]});
    options.series.push( {
        color: '#000000',
        type: 'spline',
        name :dataName2[1],
        data :dataArray2[1]});

    chart = new Highcharts.Chart(options);
    
	var bb = arguments[3] ? arguments[3] : "";
	if (bb != "") {
		var ww = jQuery("#" + bb).width();
		var hh = jQuery("#" + hcid).height();
		
		chart.setSize(ww, hh);
	}
}